import request from '@/utils/request'

// 查询约印医疗-项目管理-投决会申请-主表列表
export function listSysYueyinProjectVoteInfo(query) {
  return request({
    url: '/voteInfo/sysYueyinProjectVoteInfo/list',
    method: 'get',
    params: query
  })
}

// 查询约印医疗-项目管理-投决会申请-主表详细
export function getSysYueyinProjectVoteInfo(id) {
  return request({
    url: '/voteInfo/sysYueyinProjectVoteInfo/' + id,
    method: 'get'
  })
}

// 保存约印医疗-项目管理-投决会申请-主表
export function saveSysYueyinProjectVoteInfo(data) {
  return request({
    url: '/voteInfo/sysYueyinProjectVoteInfo/save',
    method: 'post',
    data: data
  })
}

// 删除约印医疗-项目管理-投决会申请-主表
export function delSysYueyinProjectVoteInfo(id) {
  return request({
    url: '/voteInfo/sysYueyinProjectVoteInfo/' + id,
    method: 'delete'
  })
}

// 导出约印医疗-项目管理-投决会申请-主表
export function exportSysYueyinProjectVoteInfo(query) {
  return request({
    url: '/voteInfo/sysYueyinProjectVoteInfo/export',
    method: 'get',
    params: query
  })
}

// 查询最新立项申请数据
export function getByWfNodeId(dealId) {
  return request({
    url: '/voteInfo/sysYueyinProjectVoteInfo/getByWfNodeId/' + dealId,
    method: 'get'
  })
}

